package com.company.room;

import com.company.inter.Sets;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/4/27 17:08
 * @version: v1.0
 * @modified By:
 */
public class RoomSet implements Sets {
    HashMap<String,ArrayList<Room>> roomHashMap =new HashMap<>();
//    public Room searchById(String id){
//        Room room =null;
//        return room=roomHashMap.get(id);
    @Override
    public ArrayList searchById(String floor) {
        ArrayList arrayList=null;
        return arrayList=roomHashMap.get(floor);
    }

    @Override
    public void add(Object object) {

    }

//    }


    public HashMap<String, ArrayList<Room>> getRoomHashMap() {
        return roomHashMap;
    }

    public void setRoomHashMap(HashMap<String, ArrayList<Room>> roomHashMap) {
        this.roomHashMap = roomHashMap;
    }

    public RoomSet(HashMap<String, ArrayList<Room>> roomHashMap) {
        this.roomHashMap = roomHashMap;
    }

    public RoomSet() {
    }
}
